#pragma once

#include "../umlmodel_global.h"

#include "UMLLabel.h"

namespace uml {
class NamedElement;

/// <summary>
/// UMLNameLabel
/// For showing text about NamedElements.
/// </summary>
class UMLMODEL_EXPORT UMLNameLabel : public UMLLabel {

public: // Constructors and destructors
    explicit UMLNameLabel(const QString& umlType="uml::UMLNameLabel");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// modeElement getter
    /// Restricts UMLNameLabels to be notation for NamedElements.
    /// </summary>
    shared_ptr<NamedElement> modeElement() const;

    /// <summary>
    /// modeElement setter
    /// Restricts UMLNameLabels to be notation for NamedElements.
    /// </summary>
    void setModeElement(shared_ptr<NamedElement> value);

private: // Fields
    /// <summary>
    /// modeElement
    /// Restricts UMLNameLabels to be notation for NamedElements.
    /// </summary>
    shared_ptr<NamedElement> modeElement_;

};

} // namespace uml
